<template>
  <div id="app">
      <modal :visible="visible" @on-cancel="cancel" @on-confirm="confirm"></modal>
      <div class="arr">
        <button @click="showModal">点击显示模态框</button>
      </div>
      <edit></edit>
      <fluctuation></fluctuation>
  </div>
</template>
<script>
import 'animate.css'
import mixins from './modal'
import edit from './case/edit/index.vue'
import fluctuation from './case/wag/index.vue'
export default {
  mixins: [mixins],
  components: {
    edit,
    fluctuation
  }
}
</script>
<style>
button {
  cursor: pointer;
  border: 0;
  border-radius: 6px;
  height: 35px;
  width: 150px;
  font-size: 16px;
  color: white;
  margin-bottom: 10px;
  background-image: linear-gradient(90deg, #1596fb, #002dff);
}
.add{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
}
</style>